package com.biostime.qdingding.modules.cms.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.biostime.qdingding.common.service.CrudService;
import com.biostime.qdingding.modules.cms.dao.ChannelDao;
import com.biostime.qdingding.modules.cms.entity.Channel;

/**
 * 频道表Service
 * @author king
 * @version 2015-12-11
 */
@Service
@Transactional(readOnly = true)
public class ChannelService extends CrudService<ChannelDao, Channel> {
	@Override
	public List<Channel> findList(Channel entity) {
		if(entity == null ){
			entity =new Channel();
		}
		dataScopeFilter(entity, "dsf", "id=a.center_id", "id=a.create_by");
		return super.findList(entity);
	}
}
